# $Id: PKGBUILD 88421 2013-04-17 12:42:08Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor : Rohan Dhruva (rohandhruva at gmail dot com)

pkgname=python-docs
pkgver=3.3.1
pkgrel=1
pkgdesc="Set of HTML documentation for python"
arch=('any')
url="http://docs.python.org/py3k/"
license=('GPL')
depends=()
options=('docs')
source=(http://docs.python.org/ftp/python/doc/$pkgver/python-$pkgver-docs-html.tar.bz2)
md5sums=('e730def6cc4d6dddb076aae82661b6d6')

package() {
  mkdir -p $pkgdir/usr/share/doc/python/html
  cp -rf $srcdir/python-$pkgver-docs-html/* $pkgdir/usr/share/doc/python/html/
  find $pkgdir/usr/share/doc/python/html/ -type f -exec chmod 0644 {} \;
  find $pkgdir/usr/share/doc/python/html/ -type d -exec chmod 0755 {} \;
  install -dm0755 $pkgdir/etc/profile.d
  echo "export PYTHONDOCS=/usr/share/doc/python/html" >$pkgdir/etc/profile.d/$pkgname.sh
  echo "setenv PYTHONDOCS /usr/share/doc/python/html" >$pkgdir/etc/profile.d/$pkgname.csh
}
